package JVM相关知识;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * @author coderFu
 * @create 2022/1/3
 * 测试泛型的擦除
 */
public class TestGeneric2 {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("dadasd");
        list.add("dadasd1");
        list.add("dadasd2");
        list.add("dadasd3");
        list.add("dadasd4");
        System.out.println(list);

        HashMap<String, String> map = new HashMap<>();
        map.put("1","拥王者起");
    }

    public void testGeneric(List<String> strings, int a ){
        System.out.println("第一个方法");
    }

    public void testGeneric(List<Integer> integers){
        System.out.println("第二个方法");
    }
}
